import request from '@/http/request';

/**
 * 部门任务管理
 */
export const departmentTasks = {
    getPendingTasks: (param) => request.post(`bf-project/task/withoutSystem/page/list`, param), // 任务分页列表
    getPersonnelCoordination: (param) => request.get(`bf-project/task/withoutSystem/board`, {params:param}), // 人员统筹
    getTaskList: (param) => request.get(`bf-project/task/withoutSystem/allot/list`, {params:param}), // 待分配任务列表
    taskAllocation: (param) => request.get(`bf-project/task/withoutSystem/allot`, {params:param}), // 任务分配
    getUserBoard: (param) => request.get(`bf-project/task/withoutSystem/user/board`, {params:param}), // 人员任务统计
    getTaskNodeKanban: (param) => request.get(`bf-project/task/item/task/doDetail`, {params:param}), // 任务节点看板
}

/**
 * 项目任务实施
 */
export const projectTaskImplementation = {
    createTaskItem: (param) => request.post(`bf-project/task/item/create`, param), // 新增任务节点
    getAssociatedTasks: (param) => request.get(`bf-project/task/withoutSystem/relevance/list`, {params:param}), // 关联任务
    getCollaborativeApprovalList: (param) => request.post(`bf-project/task/withoutSystem/record/list`, param), // 协同审批
    addProjectBudgetControlForm: (param) => request.post(`bf-project/system/bfProjectBudgetControlForm/add`, param), // 预算审批单 添加
    editProjectBudgetControlForm: (param) => request.post(`bf-project/system/bfProjectBudgetControlForm/edit`, param), // 预算审批单 编辑
    getProjectBudgetControlForm: (param) => request.get(`bf-project/system/bfProjectBudgetControlForm/view`, {params:param}), // 预算审批单 查看
}

